extend ../layout
block append css
    link(rel="stylesheet" href="/duimen/css/swiper.min.css")
    link(rel="stylesheet" href="/duimen/css/detail-sign.css")
block content
    include ../includes/_head
    .tie-mod.detail-sign
        script#tpl_detail_sign(type="text/html").
            <h1>{{postTitle}}</h1>
            <h3>{{custName}}<span>发表于{{postTime}}</span></h3>
            <p>{{postContent}}</p>
            {{if startTime&&endTime}}
                <p>活动时间：{{startTime}}至{{endTime}}</p>
            {{/if}}
            {{if address}}
                <p>活动地点：{{address}}</p>
            {{/if}}
            {{if images.length}}
                <div class="tie-tu">
                    <div class="swiper-container">
                        <div class="swiper-wrapper">
                            {{each images as item i}}
                                <img class="swiper-slide" src="{{item}}">
                            {{/each}}
                        </div>
                    </div>
                    <span class="page">1/{{images.length}}</span>
                </div>
            {{/if}}
            {{if postType==3}}
                <span class="sign-btn {{status[1]}}">{{status[0]}}</span>
            {{/if}}
            {{if status.length==1}}
                <div class="fixed-btn">
                    <span class="sign-btn">我要报名</span>
                </div>
            {{/if}}
    include ../includes/_tie-comments
block append js
    script(src='/duimen/js/alertBox.js')
    script(src='/duimen/js/swiper.js')
    script(src='/duimen/js/_tie-comments.js')
    script(src='/duimen/js/DetailSign.js')

